win32 theme: Add checkbutton spacing
authorBenjamin Otte <otte@gnome.org>
Mon, 15 Feb 2016 05:51:45 +0000 (06:51 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 17 Feb 2016 03:49:27 +0000 (04:49 +0100)
The number is taken right from Wine source code.

gtk/theme/win32/gtk-win32-base.css

index ae68ea1857af4743e1877f262458f8d5bfe81a04..df2dc9fcdd901d6bae6e4a68349a6d757d0919ce 100644 (file)
@@ -326,6 +326,19 @@ button:disabled {
     padding-left: calc(1px + -gtk-win32-part-border-left(button, 1, 4));
 }
 
+/* checkbuttons */
+
+/* This is the magic spacing that's hardcoded in Wine */
+checkbutton:dir(ltr) check,
+radiobutton:dir(ltr) radio {
+  margin-right: 6px;
+}
+
+checkbutton:dir(rtl) check,
+radiobutton:dir(rtl) radio {
+  margin-left: 6px;
+}
+
 /* Scrollbars */
 
 /* TODO: Win32 has different concept for upper and lower trough, we